package com.zhumengquan.wozhi.controller;

import com.zhumengquan.wozhi.domain.User;
import com.zhumengquan.wozhi.service.UpdateUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;


@Controller
public class UpdateUserController {
    @Autowired
    private UpdateUserService updateUserService;
    @RequestMapping("/updateuser")
    @ResponseBody
    public int UpdateUserById (User user){
        int result =updateUserService.updateUser(user);
        return result;
    }
}
